package com.malamute.system.service;

import java.util.Set;

import org.hibernate.criterion.DetachedCriteria;

import com.malamute.core.common.Page;
import com.malamute.system.entity.TreeNode;

/**
 * @author Aceguan
 * @description 树节点接口
 * @date 2012-2-23 下午05:42:59
 * @version v1.0
 */
public interface TreeNodeService {
	void saveTreeNode(TreeNode treeNode);

	void updateTreeNode(TreeNode treeNode);

	void listTreeNodesByPage(DetachedCriteria criteria, Page page);

	Set listTreeNodesByParent(TreeNode parent);

	TreeNode getTreeNodeById(Integer id);

	void deleteTreeNodeById(Integer id);

}
